package fms.services.persistence;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class ConnectionTool {
	private ConnectionTool() {
    }
    
    public static void closeConnection(Connection conn,PreparedStatement ps,ResultSet rs){
        try{
            if(rs!=null) rs.close();
        }catch(Exception ex){}
        try{
        	if(ps!=null) ps.close();
        }catch(Exception ex){}
        try{
        	if(conn!=null) conn.close();
        }catch(Exception ex){}
    }
}
